package com.dmy.common.utils;


import java.util.Base64;

/**
 * create by YCQ for 2020/1/10 9:10
 */
public class CoderUtils {

    // byte[]转base64
    public static String byteArrayToBase64String(byte[] data){
        return Base64.getEncoder().encodeToString(data);
    }
    public static byte[] base64StrngToByteArray(String source){
       return Base64.getDecoder().decode(source);
    }
}
